#ifndef _TCP_H_
#define _TCP_H_

#define OC_SERVER_IP   "192.168.43.52"
#define OC_SERVER_PORT 8002
#define LISTEN_PORT 9009

#define BUFF_LEN    256

// #define ROUTE_SSID             "OH_WIFI"
// #define ROUTE_PASSWORD         "12345678"
#define LOG_TAG    "tcp"

extern char g_message_send[BUFF_LEN];

/**
 * @brief Thread function to run a TCP server.
 *
 * This function starts a TCP server that listens for incoming connections
 * and handles client requests.
 *
 * @param arg Pointer to optional input arguments (not used).
 * @return int Returns 0 on success, or an error code on failure.
 */
int wifi_server(void* arg);

/**
 * @brief Thread function to run a TCP client.
 *
 * This function connects to a remote TCP server and can send/receive messages.
 *
 * @param arg Pointer to optional input arguments (not used).
 * @return int Returns 0 on success, or an error code on failure.
 */
int wifi_client(void* arg);

#endif